package com.jdy.haoduoaiteacher.util;

import android.content.Context;

import java.io.File;

public class FileCache extends AbstractFileCache {

  private File cacheDir;

  public FileCache(Context context) {
    super(context);

  }

  @Override
  public String getSavePath(String url) {
    String filename = String.valueOf(url.hashCode());
    return getCacheDir() + filename;
  }

  @Override
  public String getCacheDir() {

    return FileManager.getSaveFilePath();
  }

}
